import math

# 获取用户输入的两个数字
num1 = float(input("请输入第一个数字: "))
num2 = float(input("请输入第二个数字: "))

# 计算加法、减法、乘法、除法
sum_result = num1 + num2
difference = num1 - num2
product = num1 * num2

# 检查除法是否为零
if num2 != 0:
    quotient = num1 / num2
else:
    quotient = "无法除以零"

# 计算平方根
sqrt_num1 = math.sqrt(num1)
sqrt_num2 = math.sqrt(num2)

# 输出结果

print(f"\n计算结果:")
import pdb; pdb.set_trace()
print(f"{num1} + {num2} = {sum_result}")
print(f"{num1} - {num2} = {difference}")
print(f"{num1} * {num2} = {product}")
import pdb; pdb.set_trace()
print(f"{num1} / {num2} = {quotient}")
print(f"{num1} 的平方根 = {sqrt_num1}")
print(f"{num2} 的平方根 = {sqrt_num2}")

